﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="columnGeneral.aspx.cs" Inherits="qf_cms.admin.columnGeneral" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
	<link href="../styles/Site.css" rel="stylesheet" type="text/css" />
	<script src="../scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
	<style type="text/css">
		
		#colInfo{ padding:10px 0px;}
		.editFormSubbar{ margin-top: 20px;}
		h3{ color:#808080; font:18px  Arial,Helvetica,sans-serif ;}
		btnDiv{ padding-top:5px;}
	</style>
	<script type="text/javascript">
		$(function () {
			$('.commonTable tr').hover(function () {
				$(this).css('background-color', '#ffffae');
			},
            function () {
            	$(this).css('background-color', '#FFFFFF');
            });
           });

		function addCol() {
			window.location = "add_column.aspx?pid=<%=id %>";
		}
		function eidtCol(id) {
			window.location = "add_column.aspx?pid=<%=id %>&id=" + id;
		}
		function delCol(id) {
			if(confirm("确定删除?"))
				window.location = "columnGeneral.aspx?id=<%=id %>&delcid=" + id;
		}

		function addArt() {
			window.location = "add_article.aspx?pid=<%=id %>";
		}
		function eidtArt(id) {
			window.location = "add_article.aspx?pid=<%=id %>&id=" + id;
		}
		function delArt(id) {
			if (confirm("确定删除?"))
				window.location = "columnGeneral.aspx?id=<%=id %>&delaid=" + id;
		}
		function doSort(tag) {
			window.location = "sort_item.aspx?pid=<%=id %>&type=" + tag;
		}
	</script>
</head>
<body>
    <form id="form1" runat="server">
	<h3>当前栏目:<%=curCol.ColumnName %></h3>	
	<div class="editFormSubbar" >子栏目</div>
	<div id="tableContainer_col">
	<table class="commonTable" width="100%"  cellspacing="0" cellpadding="5" >
	    <tr>
		    <th>名称</th>
		    <th>
		    </th>
	    </tr>
        <% WriteTableData();%>
	</table>
	
	</div>
	<div class="btnDiv"><input type="button" value="添加子栏目" onclick="addCol()" />&nbsp;&nbsp;<input type="button" value=" 排序 " onclick="doSort('column')" /></div>
	<div class="editFormSubbar" >文档</div>
	<div id="Div1">
	<table class="commonTable" width="100%" cellspacing="0" cellpadding="5" >
	    <tr>
		    <th>标题</th>
			<th>发布时间</th>
			<th>类型</th>			
			<th>模板</th>
			<th>首页</th>
		    <th>
		    </th>
	    </tr>
		<% WriteArticleData();%>
	</table>
	</div>
	<div class="btnDiv"><input type="button" value="添加文章" onclick="addArt()" />&nbsp;&nbsp;<input type="button" value=" 排序 " onclick="doSort('article')" /></div>
    </form>
</body>
</html>
